package it.unisa.ingegneria.tdp.esercitazione5;
import java.util.HashMap;

/**
 * 
 * Classe che implementa il pattern Decorator
 */

public class MyItem<T> implements DecorableItem<T> {
	private HashMap<Object,Object> map;

	public MyItem() {
		map=new HashMap<Object,Object>();
	}
	
	public void setDecorator(Object key,Object value){
		map.put(key, value);
	}
	
	public Object getDecorator(Object key){
		return map.get(key);
	}

}
